package cn.webrx.entity;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

//@Service 服务类 dao 业务类
//@Component 组件
//@Repository 库
//@Controller 控制器
@Data @Repository("bk") @Scope("prototype")
public class Book {
    @Value("11")
    private int id;
    @Value("《java编程》")
    private String name;
}
